package cn.openea.perpartner.cms.web.controller;


import cn.openea.perpartner.cms.web.service.ICmsOperLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import cn.openea.perpartner.cms.web.entity.CmsOperLog;
import cn.openea.perpartner.common.core.web.controller.BaseController;
import cn.openea.perpartner.common.core.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 操作日志记录(CmsOperLog)表控制层
 *
 * @author makejava
 * @since 2022-08-12 14:42:05
 */
@Api(tags = "工作记录")
@Controller
@RequestMapping("operLog")
public class CmsOperLogController extends BaseController {
    @Autowired
    private ICmsOperLogService operLogService;
    @ApiOperation("工作记录")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(String userId,String searchStr)
    {
        startPage();
        List<CmsOperLog> list = operLogService.selectList(userId,searchStr);
        return getDataTable(list);
    }

}

